<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page isELIgnored="false"%>
<c:set var="cp" scope="session" value="${pageContext.request.servletContext.contextPath}" />
<!DOCTYPE html5>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>商品详情页面</title>
<link href="${cp}/AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css" />
<link href="${cp}/AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css" />
<link href="${cp}/basic/css/demo.css" rel="stylesheet" type="text/css" />
<link type="text/css" href="${cp}/css/optstyle.css" rel="stylesheet" />
<link type="text/css" href="${cp}/css/style.css" rel="stylesheet" />
<script type="text/javascript" src="${cp}/basic/js/jquery-1.7.min.js"></script>
<script type="text/javascript" src="${cp}/basic/js/quick_links.js"></script>
<script type="text/javascript" src="${cp}/AmazeUI-2.4.2/assets/js/amazeui.js"></script>
<script type="text/javascript" src="${cp}/js/jquery.imagezoom.min.js"></script>
<script type="text/javascript" src="${cp}/js/jquery.flexslider.js"></script>
<script type="text/javascript" src="${cp}/js/list.js"></script>
</head>
<body>
	<div class="clear"></div>
	<b class="line"></b>
	<div class="listMain">

		<!--分类-->
		<div class="nav-table">
			<div class="long-title">
				<span class="all-goods">全部分类</span>
			</div>
		</div>
		<ol class="am-breadcrumb am-breadcrumb-slash">
			<li><a href="#">首页</a></li>
			<li><a href="#">分类</a></li>
			<li class="am-active">内容</li>
		</ol>
		<script type="text/javascript">
			$(function() {
			});
			$(window).load(function() {
				$('.flexslider').flexslider({
					animation : "slide",
					start : function(slider) {
						$('body').removeClass('loading');
					}
				});
			});
		</script>
		<div class="item-inform">
			<div class="clearfixLeft" id="clearcontent">
				<div class="box">
					<div class="tb-booth tb-pic tb-s310">
						<img src="${cp}/images${good.imageUrl}" class="jqzoom" />
					</div>
				</div>
				<div class="clear"></div>
			</div>
			<div class="clearfixRight">
				<div class="tb-detail-hd">
					<h1>${good.detail}</h1>
				</div>
				<div class="tb-detail-list">
					<div class="tb-detail-price">
						<ul>
							<li class="price iteminfo_price">
								<dl>
									<dt>价格</dt>
									<dd>
										<em>¥</em><b class="sys_item_price">${good.price}</b>
									</dd>
								</dl>
							</li>
						</ul>
						<div class="clear"></div>
					</div>
					<div class="clear"></div>
					<dl class="iteminfo_parameter sys_item_specpara">
						<dt class="theme-login">
						</dt>
						<dd>
							<div class="theme-popover-mask"></div>
							<div class="theme-popover">
								<div class="theme-span"></div>
								<div class="theme-poptit">
									<a href="javascript:;" title="关闭" class="close">×</a>
								</div>
								<div class="theme-popbod dform">
									<form class="theme-signin" name="loginform" action="" method="post">
										<div class="theme-signin-left">
											<div class="theme-options">
												<div class="cart-title number">数量</div>
												<dl>
													<dd>
														<input id="min" class="am-btn am-btn-default" name="" type="button" value="-" /> 
														<input id="text_box" name="number" type="text" value="1" style="width: 30px;" /> 
														<input id="add" class="am-btn am-btn-default" name="" type="button" value="+" /> 
														<span id="Stock" class="tb-hidden">
															库存<span class="stock">${good.num}</span>件
														</span>
													</dd>
												</dl>
											</div>
											<div class="clear"></div>
											<div class="btn-op">
												<div class="btn am-btn am-btn-warning">确认</div>
												<div class="btn close am-btn am-btn-warning">取消</div>
											</div>
										</div>
									</form>
								</div>
							</div>

						</dd>
					</dl>
					<div class="clear"></div>
				</div>
				<div class="pay">
					<div class="pay-opt">
						<a href="home.html"><span class="am-icon-home am-icon-fw">首页</span></a> <a><span class="am-icon-heart am-icon-fw">收藏</span></a>
					</div>
					<ul>
						<li>
							<div class="clearfix tb-btn tb-btn-buy theme-login">
								<a id="LikBuy" title="点此按钮到下一步确认购买信息" href="javascript:;"  onclick="buyNow();">立即购买</a>
							</div>
						</li>
						<li>
							<div class="clearfix tb-btn tb-btn-basket theme-login">
								<a id="LikBasket" title="加入购物车" href="#"><i></i>加入购物车</a>
							</div>
						</li>
					</ul>
				</div>

			</div>

			<div class="clear"></div>

		</div>

		<div class="clear"></div>
	</div>
	<!--菜单 -->
	<div class=tip>
		<div id="sidebar">
			<div id="wrap">
				<div id="prof" class="item">
					<a href="#"> <span class="setting"></span>
					</a>
					<div class="ibar_login_box status_login">
						<div class="avatar_box">
							<p class="avatar_imgbox">
								<img src="${cp}/images/no-img_mid_.jpg" />
							</p>
							<ul class="user_info">
								<li>用户名：sl1903</li>
								<li>级&nbsp;别：普通会员</li>
							</ul>
						</div>
						<div class="login_btnbox">
							<a href="#" class="login_order">我的订单</a> <a href="#" class="login_favorite">我的收藏</a>
						</div>
						<i class="icon_arrow_white"></i>
					</div>

				</div>
				<div id="shopCart" class="item">
					<a href="#"> <span class="message"></span>
					</a>
					<p>购物车</p>
					<p class="cart_num">0</p>
				</div>
				<div id="asset" class="item">
					<a href="#"> <span class="view"></span>
					</a>
					<div class="mp_tooltip">
						我的资产 <i class="icon_arrow_right_black"></i>
					</div>
				</div>

				<div id="foot" class="item">
					<a href="#"> <span class="zuji"></span>
					</a>
					<div class="mp_tooltip">
						我的足迹 <i class="icon_arrow_right_black"></i>
					</div>
				</div>

				<div id="brand" class="item">
					<a href="#"> <span class="wdsc"><img src="${cp}/images/wdsc.png" /></span>
					</a>
					<div class="mp_tooltip">
						我的收藏 <i class="icon_arrow_right_black"></i>
					</div>
				</div>

				<div id="broadcast" class="item">
					<a href="#"> <span class="chongzhi"><img src="${cp}/images/chongzhi.png" /></span>
					</a>
					<div class="mp_tooltip">
						我要充值 <i class="icon_arrow_right_black"></i>
					</div>
				</div>

				<div class="quick_toggle">
					<ul>
						<li class="qtitem"><a href="#"><span class="kfzx"></span></a>
							<div class="mp_tooltip">
								客服中心<i class="icon_arrow_right_black"></i>
							</div></li>
						<!--二维码 -->
						<li class="qtitem"><a href="#none"><span class="mpbtn_qrcode"></span></a>
							<div class="mp_qrcode" style="display: none;">
								<img src="${cp}/images/weixin_code_145.png" /><i class="icon_arrow_white"></i>
							</div></li>
						<li class="qtitem"><a href="#top" class="return_top"><span class="top"></span></a></li>
					</ul>
				</div>

				<!--回到顶部 -->
				<div id="quick_links_pop" class="quick_links_pop hide"></div>

			</div>

		</div>
		<div id="prof-content" class="nav-content">
			<div class="nav-con-close">
				<i class="am-icon-angle-right am-icon-fw"></i>
			</div>
			<div>我</div>
		</div>
		<div id="shopCart-content" class="nav-content">
			<div class="nav-con-close">
				<i class="am-icon-angle-right am-icon-fw"></i>
			</div>
			<div>购物车</div>
		</div>
		<div id="asset-content" class="nav-content">
			<div class="nav-con-close">
				<i class="am-icon-angle-right am-icon-fw"></i>
			</div>
			<div>资产</div>

		</div>
		<div id="foot-content" class="nav-content">
			<div class="nav-con-close">
				<i class="am-icon-angle-right am-icon-fw"></i>
			</div>
			<div>足迹</div>
		</div>
		<div id="brand-content" class="nav-content">
			<div class="nav-con-close">
				<i class="am-icon-angle-right am-icon-fw"></i>
			</div>
			<div>收藏</div>
		</div>
		<div id="broadcast-content" class="nav-content">
			<div class="nav-con-close">
				<i class="am-icon-angle-right am-icon-fw"></i>
			</div>
			<div>充值</div>
		</div>
	</div>
	<script type="text/javascript">
		function buyNow() {
			var nums = document.getElementById('text_box').value;
			var url = '${cp}/order/toOrder.do?goodId=${good.id}&num='+nums+'';
			window.location.href = url;
		}
	</script>
</body>

</html>